<template>
    <div class="header">
        <div class="container">
            <div class="navbar">
                <ul class="nav nav-pills">
                    <li class="nav-item active">
                        <a class="nav-link" href="#">Visit</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">Exhibitions</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">Art</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">Event</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">Join</a>
                    </li>
                    <li class="nav-item active">
                        <a class="nav-link" href="#">About</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link link-cn active" href="#">中文</a>
                        <span class="link-line"></span>
                        <a class="nav-link link-en" href="#">ENGLISH</a>
                    </li>
                </ul>
            </div>
            <div class="header-logo">
                <img src="../assets/img/logo.png" height="121" width="180" alt="" class="logo-img">
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: 'headertop'
    }
</script>

<style lang="scss" scoped>
    .header {
        height: 120px;
        .container {
            position: relative;
            margin-top: 15px;
            .navbar {
                margin-left: 180px;
                .nav {
                    .nav-item {
                        .nav-link {
                            font-size: 14px;
                            line-height: 1.43;
                            color: #000;
                            font-weight: 300;
                            padding: 15px 30px;
                            font-family: LinotypeUnivers-330;
                        }
                        .link-cn, .link-en {
                            position: relative;
                            display: inline-block;
                            zoom: 1;
                            padding: 19px 20px;
                            text-align: left;
                            font-size: 12px;
                            line-height: 1;
                            color: #000;
                            &.active {
                                opacity: 0.2;
                            }
                        }
                        .link-cn {
                            font-family: 'Helvetica', 'Avenir', 'Arial', 'sans-serif';
                            margin-left: 38px;
                        }

                        .link-line {
                            display: inline-block;
                            zoom: 1;
                            width: 1px;
                            height: 10px;
                            background-color: #979797;
                        }
                        &.active {
                            .nav-link {
                                position: relative;
                                &:after {
                                    position: absolute;
                                    left: 50%;
                                    bottom: 0;
                                    margin-left: -15px;
                                    width: 30px;
                                    height: 1px;
                                    content: ' ';
                                    display: block;
                                    background-color: #000;
                                }
                            }
                        }
                    }
                }
            }
            .header-logo {
                position: absolute;
                right: 30px;
                top: 15px;
                width: 180px;
            }
        }
    }
</style>